package com.xhsj.user.hr.process.hrLeaveProcess.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.hr.process.hrLeaveProcess.entity.TbHrApprovalLeaveHistoryTime;
import com.xhsj.user.hr.process.hrLeaveProcess.query.AllLeaveTimeListByLeaveDateQuery;
import com.xhsj.user.hr.system.vo.LeaveTimeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: liuqinghua
 * @Description:
 * @Data:2020/11/4
 */
@Mapper
public interface TbHrApprovalLeaveHistoryTimeMapper  extends BaseMapper<TbHrApprovalLeaveHistoryTime> {
    /**
     * 获取请假原数据
     * @author liuqinghua
     * @date Sep 1, 2020 10:07:11 AM
     */
    List<AllLeaveTimeListByLeaveDateQuery> myOriginalLeaveApplyList(@Param("dataId") Long dataId);

    void deleteByDataId(@Param("oldId")  Long oldId);

    List<LeaveTimeVo> findListById(@Param("oldId") Long oldId);
}
